package cn.iocoder.yudao.module.system.controller.admin.userretention.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 用户留存率统计分页查询请求VO
 *
 * @author 系统
 */
@Schema(description = "管理后台 - 用户留存率统计分页查询请求VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UserRetentionPageReqVO extends PageParam {

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户类型")
    private Integer userType;

    @Schema(description = "兑换码ID")
    private Integer codeId;

    @Schema(description = "兑换码")
    private String code;

    @Schema(description = "兑换码使用开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate codeUsageDateStart;

    @Schema(description = "兑换码使用结束日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate codeUsageDateEnd;

    @Schema(description = "留存状态", example = "1")
    private Integer retentionStatus;

    @Schema(description = "3日留存")
    private Boolean retention3Days;

    @Schema(description = "7日留存")
    private Boolean retention7Days;

    @Schema(description = "15日留存")
    private Boolean retention15Days;

    @Schema(description = "计算开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate calculatedTimeStart;

    @Schema(description = "计算结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate calculatedTimeEnd;
}